/**
 *  获取用户合同
 * @author litao
 */
import { baseUrl } from '../url';
import { RequestOptions, request2 } from '../request1';

interface Required {
		zwyf: string
		yhbh : string
}
interface ReturnResult{
	yhqfhz: Object,
	yhqfmx: [],
}

/* ---
开票
*/
export function invoiceOpen(options:RequestOptions<Required, ReturnResult>) {
	request2<Required, ReturnResult>(Object.assign(options, { url: `${baseUrl}/bspsd/v2/invoice/invoiceOpen` }));
}

/**
 * 根据用户编号查询电子发票信息
 * @param {String} yhbh
 * @param {Object} pagination
 * @param {} meta
 */
// export function zwLjfysmx_getDzfpByYhbh(yhbh, pagination, meta) {
// 	return fetch({
// 		url: 'psdmsdfzw/sfglschema/ZwLjfysmx/getDzfpByYhbh',
// 		method: 'post',
// 		data: {
// 			param: {
// 				yhbh, // Sstring
// 			},
// 			pagination,
// 		},
// 	});
// }


